package com.oyjd.beauty.bean.po;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * 用户表实体
 * 
 * @author <b>欧建东<br/>
 *         Email:oyjd@163.com</b>
 * @version 1.0
 */
@Entity
@Table(name = "T_USER")
public class User implements Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -293984593150728375L;

	/**
	 * 用户主键
	 */
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name = "USER_ID", length = 32)
	private String userId;

	/**
	 * 角色表主键
	 */
	@Column(name = "ROLE_ID", length = 32)
	private String roleId;

	/**
	 * 帐号
	 */
	@Column(name = "ACCOUNT", length = 32)
	private String account;

	/**
	 * 密码
	 */
	@Column(name = "PWD", length = 32)
	private String pwd;

	/**
	 * 昵称
	 */
	@Column(name = "NAME", length = 32)
	private String name;

	/**
	 * 性别：1-男 2-女
	 */
	@Column(name = "SEX")
	private int sex;

	/**
	 * 生日
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "BIRTHDAY")
	private Date birthday;

	/**
	 * 手机号码
	 */
	@Column(name = "PHONE", length = 11)
	private String phone;

	/**
	 * 电子邮箱
	 */
	@Column(name = "EMAIL", length = 50)
	private String email;

	/**
	 * 身份证号码
	 */
	@Column(name = "IDCARD", length = 20)
	private String idcard;

	/**
	 * 身高(cm)
	 */
	@Column(name = "HEIGHT")
	private float height;

	/**
	 * 体重(kg)
	 */
	@Column(name = "WEIGHT")
	private float weight;

	/**
	 * 胸围(cm)
	 */
	@Column(name = "BUST")
	private float bust;

	/**
	 * 腰围(cm)
	 */
	@Column(name = "WAISTLINE")
	private float waistline;

	/**
	 * 臀围(cm)
	 */
	@Column(name = "HIPS")
	private float hips;

	/**
	 * 创建者：来至用户表账号
	 */
	@Column(name = "CREATOR", length = 32)
	private String creator;

	/**
	 * 创建时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME")
	private Date createTime;

	/**
	 * 最后更新者：来至用户表账号
	 */
	@Column(name = "LAST_EDITOR", length = 32)
	private String lastEditor;

	/**
	 * 最后更新时间
	 */
	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_UPDATE_TIME")
	private Date lastUpdateTime;

	/**
	 * 状态：0-正常 1-删除
	 */
	@Column(name = "STATUS")
	private int status;

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getIdcard() {
		return idcard;
	}

	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}

	public float getHeight() {
		return height;
	}

	public void setHeight(float height) {
		this.height = height;
	}

	public float getWeight() {
		return weight;
	}

	public void setWeight(float weight) {
		this.weight = weight;
	}

	public float getBust() {
		return bust;
	}

	public void setBust(float bust) {
		this.bust = bust;
	}

	public float getWaistline() {
		return waistline;
	}

	public void setWaistline(float waistline) {
		this.waistline = waistline;
	}

	public float getHips() {
		return hips;
	}

	public void setHips(float hips) {
		this.hips = hips;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getLastEditor() {
		return lastEditor;
	}

	public void setLastEditor(String lastEditor) {
		this.lastEditor = lastEditor;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}